package com.itheima.day03.demo1;

public class KeyBoard implements USB{
   private String name;

    public KeyBoard() {
    }

    public KeyBoard(String name) {
        this.name = name;
    }

    public void typ() {
        System.out.println(name+"调用打字功能");
    }

    @Override
    public void access() {
        System.out.println(name+"设备完成接入");
    }

    @Override
    public void pullOut() {
        System.out.println(name + "设备拔出");
    }
}
